-- GENERATED SPELL FOR [Onslaught Paladin] --


function spell0_29329(pUnit, Event) --@Avenger\'s Shield,n/a--
pUnit:FullCastSpellOnTarget(32774,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29329', 6306, 1)
end

function spell1_29329(pUnit, Event) --@Shield Charge,n/a--
pUnit:FullCastSpellOnTarget(19131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29329', 556, 1)
end

function Sorts_29329(pUnit, Event)
local choix_sorts_29329 = math.random(0, 1)
if choix_sorts_29329 == 0 then
pUnit:RegisterEvent('spell0_29329', 1, 1)
end
if choix_sorts_29329 == 1 then
pUnit:RegisterEvent('spell1_29329', 1, 1)
end
end

function mob29329_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29329', math.random(1500, 3000), 1)
end

function mob29329_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29329_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29329_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29329, 1, 'mob29329_Action')
RegisterUnitEvent(29329, 2, 'mob29329_Leave')
RegisterUnitEvent(29329, 3, 'mob29329_Kill')
RegisterUnitEvent(29329, 4, 'mob29329_Die')
